local Class = require('lua.lang.Class')
local ConstantsIndexMapper = require('lua.decompiler.virtual.code.mapper.ConstantsIndexMapper')

--- @class DefaultConstantsIndexMapper : ConstantsIndexMapper
local DefaultConstantsIndexMapper = Class {
	__extends = ConstantsIndexMapper
}

--- @return DefaultConstantsIndexMapper
function DefaultConstantsIndexMapper:new()
	--- @type DefaultConstantsIndexMapper
	local o = {}
	return setmetatable(o, DefaultConstantsIndexMapper)
end

--- @return string
function DefaultConstantsIndexMapper:getKSign()
	return 'K'
end

--- @param i number
--- @return string
function DefaultConstantsIndexMapper:get(i)
	return tostring(i)
end

--- @param i number
--- @return string
function DefaultConstantsIndexMapper:getKIdx(i)
	return self:get(i)
end

return DefaultConstantsIndexMapper